'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview mongodb连接池
 * @author sundbcn@gmail.com (sun debing)
 */

var mongoPool = require('./mongoPool');
var configUtil = require('../../util/configUtil');

module.exports = (function () {
    var mongodb_config = configUtil.load('mongodb');
    var mongodb_connector = mongoPool.createMongodbPool(mongodb_config);
    return function () {
        return mongodb_connector;
    };
})();
